package com.chenglu.android.restaurant.adapter;

import android.content.Context;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.chenglu.android.R;
import com.chenglu.android.common.utils.Utils;
import com.chenglu.android.restaurant.bean.CurrentShopsInfoBean;
import com.chenglu.android.restaurant.bean.RestaurantSearchBean;

import java.util.List;

/**
 * @author: lyj
 * @Created: by Copyright 2023 3 Guangzhou Hongma Technology Co., Ltd. All rights reserved.
 * @Description：满减
 */
public class ShopCouponListAdapter extends BaseQuickAdapter<CurrentShopsInfoBean.DataBean.CouponListBean, BaseViewHolder> {

    Context mContext;

    public ShopCouponListAdapter(Context context, @Nullable List<CurrentShopsInfoBean.DataBean.CouponListBean> data) {
        super(R.layout.item_store_coupon_list, data);
        this.mContext = context;
    }


    @Override
    protected void convert(@NonNull BaseViewHolder helper, CurrentShopsInfoBean.DataBean.CouponListBean item) {
           helper.setText(R.id.tv_coupon_name,"满"+ Utils.formatZeroNumber(item.getMinMoney()+"")+"减"
           +Utils.formatZeroNumber(item.getCouponAmount()+""));
    }

}
